Skip to content

test: harden hypothesis core invariants#204

Merged
rlippmann merged 3 commits into
mainfrom
hypothesis-hardening
Jul 24, 2026
Merged

test: harden hypothesis core invariants#204
rlippmann merged 3 commits into
mainfrom
hypothesis-hardening

Conversation

@rlippmann

Copy link
Copy Markdown
Owner

What changed

  • add Hypothesis coverage for state JSON invariants, deterministic replacement semantics, preview non-mutation, and grammar helper render/validate round trips in tests/test_properties.py
  • refine generated strategies so the new properties stay within canonical supported inputs and deterministic replacement cases
  • keep the PR test-only without changing runtime behavior

Why

  • checkpoint removal simplified the authoritative core, so broader generated coverage helps catch state and transition edge cases that curated fixtures are unlikely to enumerate
  • the new properties strengthen confidence in export/import stability, replacement determinism, preview isolation, and the public grammar helper contract

Checklist

  • pre-commit run (uv run pre-commit run --all-files)
  • tests pass (uv run pytest)

@rlippmann
rlippmann marked this pull request as ready for review July 24, 2026 07:45
@rlippmann
rlippmann merged commit 00e441a into main Jul 24, 2026
18 checks passed
@rlippmann
rlippmann deleted the hypothesis-hardening branch July 24, 2026 07:45
@rlippmann
rlippmann restored the hypothesis-hardening branch July 24, 2026 07:47
@rlippmann
rlippmann deleted the hypothesis-hardening branch July 25, 2026 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant